<html>
<head>
<title>chgSt</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../../_sharedassets/pages.js"></script>
</head>
<body>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_57.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10"  height="1"><a href="FStEngOneFive_59.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1"></td></tr></table>
<h1>chgSt</h1>
<h4>Usage</h4>
<pre>
<i>mystate.chgSt(transID, val)</i>
</pre>
<h4>Parameters</h4>
<p><i>transID</i> </p>
<p><i>val</i> </p>
<h4>Returns</h4>
<p>Nothing</p>
<h4>Description</h4>
<p><strong>Note:</strong> In version 1.5, the transition triggering is handled 
  automatically, so the developer does not need to use this method if a trigger 
  name is used when the transition is created. </p>
<p>Change state using transition trans_i, with an optional value for the transition 
  function as a second argument. If you look at the code, this function passes 
  the information to the chgSt method of the state manager to do the real work. 
  The reason we define this dummy is so that modelers see the direct relationship 
  to the transition id, which is unique by state. For example, if a caller wants 
  to change the current state, state 2, using transition 0, the caller would write:</p>
<code>state2.chgSt(0);</code> <p>This implies that the transition 0 is relative to the state. The same unaltered call would be</p> <code>sm.chgSt(0);</code> <p>in which 'sm' is the state manager of state 2 and its siblings. It is less obvious from the second form that the processor is using the current state (2)'s transition 0, as opposed to, perhaps, state 1 or 6's transition with id 0.</p> <p>The second argument, val, is an optional value to send in to the transition function.</p></p>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="6" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_57.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10" height="1"><a href="FStEngOneFive_59.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr></table>
</body>
</html>